FUNCTION

get_block_height

function get_block_height(): integer

Returns the block height regardless of whether op_context exists. Returns:

  • 0 if this is the first block
  • block_height if op_context exists
  • last block height + 1 if op_context does not exist
© 2024 Chromia